Integrand size = 19, antiderivative size = 209 \[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=-\frac {\cosh (c+d x)}{b d^2}-\frac {a \cosh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 b^2}-\frac {a \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{2 b^2}+\frac {x \sinh (c+d x)}{b d}+\frac {a \sinh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 b^2}-\frac {a \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{2 b^2} \]
-cosh(d*x+c)/b/d^2-1/2*a*Chi(d*x+d*(-a)^(1/2)/b^(1/2))*cosh(c-d*(-a)^(1/2) /b^(1/2))/b^2-1/2*a*Chi(-d*x+d*(-a)^(1/2)/b^(1/2))*cosh(c+d*(-a)^(1/2)/b^( 1/2))/b^2+x*sinh(d*x+c)/b/d-1/2*a*Shi(d*x+d*(-a)^(1/2)/b^(1/2))*sinh(c-d*( -a)^(1/2)/b^(1/2))/b^2-1/2*a*Shi(d*x-d*(-a)^(1/2)/b^(1/2))*sinh(c+d*(-a)^( 1/2)/b^(1/2))/b^2
Result contains complex when optimal does not.
Time = 1.39 (sec) , antiderivative size = 209, normalized size of antiderivative = 1.00 \[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=-\frac {a e^{c-\frac {i \sqrt {a} d}{\sqrt {b}}} \left (e^{\frac {2 i \sqrt {a} d}{\sqrt {b}}} \operatorname {ExpIntegralEi}\left (d \left (-\frac {i \sqrt {a}}{\sqrt {b}}+x\right )\right )+\operatorname {ExpIntegralEi}\left (d \left (\frac {i \sqrt {a}}{\sqrt {b}}+x\right )\right )\right )+a e^{-c-\frac {i \sqrt {a} d}{\sqrt {b}}} \left (e^{\frac {2 i \sqrt {a} d}{\sqrt {b}}} \operatorname {ExpIntegralEi}\left (-\frac {i \sqrt {a} d}{\sqrt {b}}-d x\right )+\operatorname {ExpIntegralEi}\left (\frac {i \sqrt {a} d}{\sqrt {b}}-d x\right )\right )+\frac {4 b \cosh (d x) (\cosh (c)-d x \sinh (c))}{d^2}-\frac {4 b (d x \cosh (c)-\sinh (c)) \sinh (d x)}{d^2}}{4 b^2} \]
-1/4*(a*E^(c - (I*Sqrt[a]*d)/Sqrt[b])*(E^(((2*I)*Sqrt[a]*d)/Sqrt[b])*ExpIn tegralEi[d*(((-I)*Sqrt[a])/Sqrt[b] + x)] + ExpIntegralEi[d*((I*Sqrt[a])/Sq rt[b] + x)]) + a*E^(-c - (I*Sqrt[a]*d)/Sqrt[b])*(E^(((2*I)*Sqrt[a]*d)/Sqrt [b])*ExpIntegralEi[((-I)*Sqrt[a]*d)/Sqrt[b] - d*x] + ExpIntegralEi[(I*Sqrt [a]*d)/Sqrt[b] - d*x]) + (4*b*Cosh[d*x]*(Cosh[c] - d*x*Sinh[c]))/d^2 - (4* b*(d*x*Cosh[c] - Sinh[c])*Sinh[d*x])/d^2)/b^2
Time = 0.61 (sec) , antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {5816, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx\) |
\(\Big \downarrow \) 5816 |
\(\displaystyle \int \left (\frac {x \cosh (c+d x)}{b}-\frac {a x \cosh (c+d x)}{b \left (a+b x^2\right )}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {a \cosh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 b^2}-\frac {a \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Chi}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 b^2}+\frac {a \sinh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 b^2}-\frac {a \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 b^2}-\frac {\cosh (c+d x)}{b d^2}+\frac {x \sinh (c+d x)}{b d}\) |
-(Cosh[c + d*x]/(b*d^2)) - (a*Cosh[c + (Sqrt[-a]*d)/Sqrt[b]]*CoshIntegral[ (Sqrt[-a]*d)/Sqrt[b] - d*x])/(2*b^2) - (a*Cosh[c - (Sqrt[-a]*d)/Sqrt[b]]*C oshIntegral[(Sqrt[-a]*d)/Sqrt[b] + d*x])/(2*b^2) + (x*Sinh[c + d*x])/(b*d) + (a*Sinh[c + (Sqrt[-a]*d)/Sqrt[b]]*SinhIntegral[(Sqrt[-a]*d)/Sqrt[b] - d *x])/(2*b^2) - (a*Sinh[c - (Sqrt[-a]*d)/Sqrt[b]]*SinhIntegral[(Sqrt[-a]*d) /Sqrt[b] + d*x])/(2*b^2)
3.1.58.3.1 Defintions of rubi rules used
Int[Cosh[(c_.) + (d_.)*(x_)]*(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Sy mbol] :> Int[ExpandIntegrand[Cosh[c + d*x], x^m*(a + b*x^n)^p, x], x] /; Fr eeQ[{a, b, c, d}, x] && ILtQ[p, 0] && IntegerQ[m] && IGtQ[n, 0] && (EqQ[n, 2] || EqQ[p, -1])
Time = 0.22 (sec) , antiderivative size = 268, normalized size of antiderivative = 1.28
method | result | size |
risch | \(\frac {{\mathrm e}^{\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) a}{4 b^{2}}+\frac {{\mathrm e}^{\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) a}{4 b^{2}}+\frac {{\mathrm e}^{-\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) a}{4 b^{2}}+\frac {{\mathrm e}^{-\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) a}{4 b^{2}}-\frac {{\mathrm e}^{-d x -c} x}{2 d b}+\frac {{\mathrm e}^{d x +c} x}{2 d b}-\frac {{\mathrm e}^{-d x -c}}{2 d^{2} b}-\frac {{\mathrm e}^{d x +c}}{2 d^{2} b}\) | \(268\) |
1/4/b^2*exp((d*(-a*b)^(1/2)+c*b)/b)*Ei(1,(d*(-a*b)^(1/2)-(d*x+c)*b+c*b)/b) *a+1/4/b^2*exp((-d*(-a*b)^(1/2)+c*b)/b)*Ei(1,-(d*(-a*b)^(1/2)+(d*x+c)*b-c* b)/b)*a+1/4/b^2*exp(-(d*(-a*b)^(1/2)+c*b)/b)*Ei(1,-(d*(-a*b)^(1/2)-(d*x+c) *b+c*b)/b)*a+1/4/b^2*exp(-(-d*(-a*b)^(1/2)+c*b)/b)*Ei(1,(d*(-a*b)^(1/2)+(d *x+c)*b-c*b)/b)*a-1/2/d/b*exp(-d*x-c)*x+1/2/d/b*exp(d*x+c)*x-1/2/d^2/b*exp (-d*x-c)-1/2/d^2/b*exp(d*x+c)
Leaf count of result is larger than twice the leaf count of optimal. 502 vs. \(2 (169) = 338\).
Time = 0.26 (sec) , antiderivative size = 502, normalized size of antiderivative = 2.40 \[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=\frac {4 \, b d x \sinh \left (d x + c\right ) - 4 \, b \cosh \left (d x + c\right ) - {\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (d x - \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (-d x + \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \cosh \left (c + \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (d x + \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (-d x - \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \cosh \left (-c + \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (d x - \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (-d x + \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \sinh \left (c + \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (d x + \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} {\rm Ei}\left (-d x - \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \sinh \left (-c + \sqrt {-\frac {a d^{2}}{b}}\right )}{4 \, {\left (b^{2} d^{2} \cosh \left (d x + c\right )^{2} - b^{2} d^{2} \sinh \left (d x + c\right )^{2}\right )}} \]
1/4*(4*b*d*x*sinh(d*x + c) - 4*b*cosh(d*x + c) - ((a*d^2*cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(d*x - sqrt(-a*d^2/b)) + (a*d^2*cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(-d*x + sqrt(-a*d^2/b)))*cosh(c + sqrt(-a*d^2/b )) - ((a*d^2*cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(d*x + sqrt(-a*d^2 /b)) + (a*d^2*cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(-d*x - sqrt(-a*d ^2/b)))*cosh(-c + sqrt(-a*d^2/b)) - ((a*d^2*cosh(d*x + c)^2 - a*d^2*sinh(d *x + c)^2)*Ei(d*x - sqrt(-a*d^2/b)) - (a*d^2*cosh(d*x + c)^2 - a*d^2*sinh( d*x + c)^2)*Ei(-d*x + sqrt(-a*d^2/b)))*sinh(c + sqrt(-a*d^2/b)) + ((a*d^2* cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(d*x + sqrt(-a*d^2/b)) - (a*d^2 *cosh(d*x + c)^2 - a*d^2*sinh(d*x + c)^2)*Ei(-d*x - sqrt(-a*d^2/b)))*sinh( -c + sqrt(-a*d^2/b)))/(b^2*d^2*cosh(d*x + c)^2 - b^2*d^2*sinh(d*x + c)^2)
\[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=\int \frac {x^{3} \cosh {\left (c + d x \right )}}{a + b x^{2}}\, dx \]
\[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=\int { \frac {x^{3} \cosh \left (d x + c\right )}{b x^{2} + a} \,d x } \]
1/2*((d*x^3*e^(2*c) - x^2*e^(2*c))*e^(d*x) - (d*x^3 + x^2)*e^(-d*x))/(b*d^ 2*x^2*e^c + a*d^2*e^c) - 1/2*integrate(2*(a*d*x^2*e^c - a*x*e^c)*e^(d*x)/( b^2*d^2*x^4 + 2*a*b*d^2*x^2 + a^2*d^2), x) + 1/2*integrate(2*(a*d*x^2 + a* x)*e^(-d*x)/(b^2*d^2*x^4*e^c + 2*a*b*d^2*x^2*e^c + a^2*d^2*e^c), x)
\[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=\int { \frac {x^{3} \cosh \left (d x + c\right )}{b x^{2} + a} \,d x } \]
Timed out. \[ \int \frac {x^3 \cosh (c+d x)}{a+b x^2} \, dx=\int \frac {x^3\,\mathrm {cosh}\left (c+d\,x\right )}{b\,x^2+a} \,d x \]